
//import java.util.Arrays;

import static java.lang.Math.*;
//import static java.lang.Math.sqrt;

class Student {
    //成员变量
    public String name;
    public int age;
    public String sex;

    //成员方法
    public void eat(){
        System.out.println(" is eating");
    }
}

class Date{
    public int year;
    public int month;
    public int day;
    public void setDate(int year,int month,int day){
        this.year=year;
        this.month=month;
        this.day=day;
    }

    public Date() {
        this(2024,3,18);
        System.out.println("无参数构造方法");
    }

    public Date(int year, int month, int day) {
        this.year = year;
        this.month = month;
        this.day = day;
        System.out.println("有参数构造方法");

    }

    public void show(){
        System.out.println( this.year+" "+ this.month+" "+ this.day);
    }
}
public class Text {
    public static void main(String[] args) {
        int [] array=new int[]{1,2,3,4,5};
        System.out.println(java.util.Arrays.toString( array));
    }
    public static void main2(String[] args) {
        double result = sqrt(pow(3, 2) + pow(4, 2));
        System.out.println(result);
        String array="asdf";
        System.out.println(array.length());
    }
    public static void main1(String[] args) {
        Date date=new Date();
       // date.setDate(2024,3,18);
        date.show();
    }
}
